#ifndef _AC_Calypso_NUMPADWIDGET
#define _AC_Calypso_NUMPADWIDGET

class NumpadWidget : public QWidget {
	Q_OBJECT

	NumpadWidget(const NumpadWidget&);
	QMap< QString, QPair<QRect, QImage> > mKeys;
	QString mKeyDown;

protected:
	void paintEvent(QPaintEvent * e);
	void mousePressEvent(QMouseEvent * e);
	void mouseReleaseEvent(QMouseEvent * e);
	
public:
	NumpadWidget(QWidget * parent);
	~NumpadWidget();

	void scale(float scale);

signals:
	void numpadInsert(const QString& number);
	void numpadDelete();
	void numpadGetCode();
};

#endif